<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core">
 
    <head>        
        <title>Exercício</title>        
        <style type="text/css">
		html {
			background: #f9f9f9;
		}
		body {
			background: #fff;
			color: #333;
			font-family: "Lucida Grande", Verdana, Arial, "Bitstream Vera Sans", sans-serif;
			margin: 2em auto;
			width: 700px;
			padding: 1em 2em;
			-moz-border-radius: 11px;
			-khtml-border-radius: 11px;
			-webkit-border-radius: 11px;
			border-radius: 11px;
			border: 1px solid #dfdfdf;
		}
		#error-page {
			margin-top: 50px;
		}
		#error-page p {
			font-size: 12px;
			line-height: 18px;
			margin: 25px 0 20px;
		}
		#error-page code {
			font-family: Consolas, Monaco, monospace;
		}
			</style>
    </head>
    <body id="error-page">
        <h1>Faça Login para ter acesso ao Sistema</h1>
        <hr>
        <form action="j_security_check" method="post" name="frm">
            <table border="0" cellpadding="3" cellspacing="0">
                <tr>
                    <td>Usuário:</td>
                    <td><input type="text" name="j_username"/></td>
                </tr>
                <tr>
                    <td>Senha:</td>
                    <td>
                        <input type="password" name="j_password"/>                        
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <input type="submit" value="ok"/>
                    </td>
                </tr>
            </table>
        </form>
        <c:if test="${not empty param['j_username'] or not empty param['j_password']}">
            <h3 style="color: red">Login Inválido!</h3>
        </c:if>
        </hr>
    </body>
</html>

